﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Nauka.engine
{
    class GamePlayer
    {
        int seat_number;
        string nickname;
        float amount;
        long game_number;
        bool big_blind = false;
        bool small_blind = false;
        bool dead_blind = false;
        bool sit_out = false;
        Card card_1;
        Card card_2;
        float won = 0;
        Position position;

        public GamePlayer()
        {

        }

        public GamePlayer(int seat_number, string nickname, float amount, long game_number)
        {
            this.seat_number = seat_number;
            this.nickname = nickname;
            this.amount = amount;
            this.game_number = game_number;
        }

        public Position getPosition()
        {
            return position;
        }

        public void setPosition(Position pos){
            position = pos;
        }

        public float getWon()
        {
            return won;
        }

        public void setWon(float value)
        {
            this.won = value;
        }

        public long getGameNr()
        {
            return game_number;
        }

        public bool getSO()
        {
            return sit_out;
        }

        public bool getBB()
        {
            return big_blind;
        }

        public bool getSB()
        {
            return small_blind;
        }

        public bool getDB()
        {
            return dead_blind;
        }

        public float getAmount()
        {
            return amount;
        }

        public Card getCard(int nr)
        {
            switch (nr)
            {
                case 1:
                    return card_1;
                default:
                    return card_2;
            }
        }

        public int getSeatNr()
        {
            return seat_number;
        }

        public void setCard_1(Card c){
            card_1 = c;
        }

        public void setCard_2(Card c){
            card_2 = c;
        }

        public string getNickname()
        {
            return this.nickname;
        }

        public void setSO(bool value)
        {
            this.sit_out = value;
        }

        public void setBB(bool value)
        {
            this.big_blind = value;
        }

        public void setSB(bool value)
        {
            this.small_blind = value;
        }

        public void setDB(bool value)
        {
            this.dead_blind = value;
        }
    }
}
